home *** CD-ROM | disk | FTP | other *** search
-
- CheckGuide 1.0 -- Checks AmigaGuide files for common errors
-
- by Eddy Carroll, September 1994. Freely distributable.
-
- INTRODUCTION
-
- If you've ever tried creating even a modestly sized AmigaGuide file
- by hand, you'll have discovered that it can be quite difficult to
- keep track of all the various links and cross references. As your
- help file gets larger, it gets increasingly harder to ensure that
- you have remembered to reference all the nodes in the file from at
- least one place, and haven't left any unresolved links.
-
- CheckGuide is a simple utility that can detect several common errors
- in AmigaGuide files. The errors it can detect are:
-
- o Extra plain text between an @ENDNODE and @NODE (AmigaGuide won't
- allow such text to ever be displayed)
-
- o Nodes that are defined but not referenced from any other node.
- Unless your program directly instructs AmigaGuide to access such
- nodes, the user won't easily be able to access them.
-
- o Links to help nodes that aren't defined within the file.
-
- o Open braces with no preceding @ character (usually a simple typo).
-
- o @{" Button "} constructs with no LINK command (an easy mistake to
- make if you're entering a lot of them).
-
- All of these options can be selectively enabled or disabled.
-
-
- USAGE
-
- The command template looks like this:
-
- CheckGuide filename.guide [Options]
-
- Filename.guide is the AmigaGuide file you wish to check. The .guide
- suffix is optional; CheckGuide will add it if necessary. The valid
- options are:
-
- EXTRATEXT Check for extra text between @ENDNODE and @NODE
- NODES Check for nodes that are not referenced anywhere
- REFS Check for references to non-existant nodes
- BRACES Check for braces that aren't preceded by @
- LINK Check that every node reference includes LINK keyword
- ALL Perform all the above checks (default)
- VERBOSE Display lines with errors for EXTRATEXT and BRACES
-
- In addition, each option can optionally be prefixed by the word NO.
- Although ALL is the default, specifying any of the options on its
- own causes all other options to be disabled. You can selectively
- disable just a single option by specifying its negative version.
- For example:
-
- CheckGuide file NOBRACES
-
- will perform all checks except for the BRACES check (useful if the
- Guide file includes some snippets of C source, where the braces are
- actually legitimate). Another example:
-
- CheckGuide file NODES REFS
-
- will run only the Nodes and Refs checks.
-
- The VERBOSE option is useful if your file doesn't have too many errors;
- it causes any problem lines to be printed to the screen, so you can
- immediately check if there's a real fault or not.
-
-
- FUTURE
-
- This was really only written as a quick hack, since I had a rather large
- AmigaGuide file I needed to check. It's not great, but it's better
- than nothing. Source is included in case you think of anything else
- you'd like to do; if you make any useful changes, I'd appreciate you
- sending me a copy of them.
-
-
- DISTRIBUTION
-
- This code is freely distributable. It may be used for any commercial or
- non-commercial application whatsoever.
-
-
- AUTHOR
-
- Eddy Carroll can be reached at either of the following addresses:
-
- ecarroll@maths.tcd.ie
- ecarroll@cix.compulink.co.uk
-